package org.vehicle.dao;

import java.util.List;
import java.util.Map;

import org.vehicle.dao.base.BaseDaoMapper;
import org.vehicle.entity.PositionInfo;

public interface PositionInfoMapper extends BaseDaoMapper<PositionInfo, Long>{
	/**
	 * 通过行程id查询位置列表
	 * @param tripId
	 * @return
	 */
	public List<Map<String, Object>> findPositionListByTripId(Long tripId);
	/**
	 * 通过行程id删除位置信息
	 * @param tripId
	 * @return
	 */
	public void delPositionByTripId(Long tripId);
	/**
	 * 获取行程最后一个位置
	 * @param tripId
	 * @return
	 */
	public PositionInfo getLastByTripId(Long tripId);
}